package com.xiao.service;

import com.xiao.service.impl.OpenFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "nacos-provider-payment", fallback = OpenFeignServiceImpl.class)
//@RequestMapping("/pay")
public interface OpenFeignService {
    @GetMapping(value = "/pay/getDiscovery/{id}")
    String getDiscovery(@PathVariable("id") Long id);
}
